#include "event.h"
#include <string.h>
#include <avr/interrupt.h>


EVENT *Event_Init(void) {

	EVENT *e;
	unsigned int i;
	unsigned char sreg = SREG;     

	Disable_Interrupt();
	e = NULL;
	for(i=0; i <MAXEVENT; i++){
		//do something
		SREG = sreg;    

	}
	Enable_Interrupt();

	return &e;
}


void Event_Wait( EVENT *e ) {

	Disable_Interrupt();


}


void Event_Signal( EVENT *e ) {


}

void Event_Broadcast( EVENT *e ) {



}
void  Signal_And_Next( EVENT *e ) {	
	Event_Signal(e);
	Task_Next();
	
}

void  Broadcast_And_Next( EVENT *e ) {
	Event_Broadcast(e);
	Task_Next();

}
